FROM ubuntu

WORKDIR /app

RUN apt-get update && apt-get install -y \
    python3.10
RUN apt-get install -y python3-pip
RUN python3.10 -m pip install --upgrade pip
RUN python3.10 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
RUN pip  install "paddleocr>=2.0.1" -i https://mirror.baidu.com/pypi/simple # 推荐使用2.0.1+版本
RUN pip install opencv-python-headless -i https://mirror.baidu.com/pypi/simple

VOLUME ["cmd","imgs"]

EXPOSE 8090

CMD ["/app/cmd/main"]